# coding:utf-8
"""
Author: r.xw
Date: 2023/12/9
File: config.py
Desc: 配置
"""


# 全局通用配置
class Config(object):
    db_url = 'mysql+pymysql://root:123456@192.168.31.129/mumushouji'
    page_count = 10
    image_path = '/images'

    email_host = 'smtp.126.com'
    email_name = 'yyloon@126.com'
    email_password = 'HBCIEQCQFALOQQVR'


# 测试环境配置
class TestConfig(Config):
    echo = True
    LOG_LEVEL = 'DEBUG'


# 生产环境配置
class ProductionConfig(Config):
    echo = False
    LOG_LEVEL = 'INFO'


config = {
    'test': TestConfig
    , 'production': ProductionConfig
}
